/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package binh.data;

import java.util.concurrent.atomic.AtomicInteger;

/**
 *
 * @author ADMIN
 */
public class CEmuDataBase implements IDatabase
{
    private final static AtomicInteger IdGen = new AtomicInteger(1000);

    @Override
    public CUserData login(String username, String password)
    {
        
        CUserData UserData = new CUserData();
        UserData.Username = username;
        UserData.Id = IdGen.incrementAndGet();
        UserData.Gold = 1000;
        UserData.Ki = 500;
        return UserData;
    }
    
}
